import type { Preview } from '@storybook/vue3';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import { setup } from '@storybook/vue3';
import zhCn from "@element-plus/locale/lang/zh-cn";

setup((app) => {
    app.use(ElementPlus, {
        locale: zhCn
    });
});
const preview: Preview = {
    parameters: {
        actions: { argTypesRegex: '^on[A-Z].*' },
        controls: {
            matchers: {
                color: /(background|color)$/i,
                date: /Date$/,
            },
        },
    },
};
export default preview;
